package com.jt.mapper;

import com.jt.pojo.DemoUser;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface DemoUserMapper {
    public List<DemoUser> findAll();

    DemoUser getOne(int id);

    List<DemoUser> findOne(String name);

    List<DemoUser> findTwo(DemoUser demoUser);

    List<DemoUser> findThree(HashMap<String, Object> map);
//类似于封装为Map的Key
    List<DemoUser> findFour(@Param("sex") String sex, @Param("age")int age);

    List<DemoUser> findOrder(String column);

    int findSave(DemoUser demoUser);

    int findUpdate(DemoUser demoUser);

    int findDelete(String name);
}
